package bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

public class RepeatTimeBean implements Parcelable {
    public int title=0; //0 是星期天  6 是星期六
    public String str;//每一天开启录像时间的数组
    public boolean  mIsAllDay=false;

    public RepeatTimeBean(int title, String str, boolean mIsAllDay) {
        this.title = title;
        this.str = str;
        this.mIsAllDay = mIsAllDay;
    }


    protected RepeatTimeBean(Parcel in) {
        title = in.readInt();
        str = in.readString();
        mIsAllDay = in.readByte() != 0;
    }

    public static final Creator<RepeatTimeBean> CREATOR = new Creator<RepeatTimeBean>() {
        @Override
        public RepeatTimeBean createFromParcel(Parcel in) {
            return new RepeatTimeBean(in);
        }

        @Override
        public RepeatTimeBean[] newArray(int size) {
            return new RepeatTimeBean[size];
        }
    };

    public int getTitle() {
        return title;
    }

    public void setTitle(int title) {
        this.title = title;
    }

    public String getStr() {
        return str;
    }

    public void setStr(String str) {
        this.str = str;
    }

    public boolean ismIsAllDay() {
        return mIsAllDay;
    }

    public void setmIsAllDay(boolean mIsAllDay) {
        this.mIsAllDay = mIsAllDay;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(title);
        dest.writeString(str);
        dest.writeByte((byte) (mIsAllDay ? 1 : 0));
    }
}
